<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>list页面，显示管理员列表</title>
</head>
<body>
	<h3>管理员列表</h3>
	<table  border="1" cellspacing="0" cellpadding="0">
		<tr align="center">
			<th width="5%">ID</th>
			<th width="10%">管理员姓名</th>
			<th width="5%">年龄</th>
			<th width="10%" colspan="2">操作</th>
		</tr>
		<!-- 添加循环 -->
		<c:forEach items="${list}" var="list">
			<tr align="center">
				<td >${list.aid }</td>
				<td>${list.aname }</td>
				<td>${list.age}</td>
				<td><a href="DelAdmin?aid=${list.aid}">删除</a></td>
				<td><a href="getAdminById?aid=${list.aid}">修改</a></td>
			</tr>
		</c:forEach>
	
			
	</table>
		<a href="AddAdmin.jsp">添加管理员</a>
		<a href="succ.jsp">回去</a>
</body>
</html>